package com.dlwx.parttimetalent.adapter;

import android.content.Context;
import android.widget.ImageView;
import android.widget.TextView;

import com.dlwx.parttimetalent.R;
import com.dlwx.parttimetalent.bean.IcomeHisBean;

/**
 * Created by Administrator on 2017/11/21.
 */

public class IncomeHisItemAdapter extends ListBaseAdapter<IcomeHisBean.BodyBean.ListdataBean> {
    private  Context context;
    public IncomeHisItemAdapter(Context context) {
        super(context);
        this.context=context;
    }

    @Override
    public int getLayoutId() {
        return  R.layout.item_income;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        IcomeHisBean.BodyBean.ListdataBean bean = getDataList().get(position);
        TextView tv_name=holder.getView(R.id.tv_name);
        TextView tv_address=holder.getView(R.id.tv_address);
        TextView tv_price=holder.getView(R.id.tv_price);
        TextView tv_time=holder.getView(R.id.tv_time);
        ImageView image_header=holder.getView(R.id.image_header);
        tv_name.setText(bean.getCdesc());
        tv_address.setText(bean.getArea());
        tv_price.setText(bean.getPrice());
        tv_time.setText(bean.getCap_time());

        }
}
